<?php
namespace Api\Controller;
class VersionController extends BaseController {
    public function getVersionCode() {
        $version = M('version')->limit(0, 1)->order('id desc')->select();
        if ($version) {
            succeed(get_auto_data($version[0]));
        } else {
            fail('未获取到版本信息');
        }
    }
}